﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RushTracker.Core.Models
{
    public class Reputation
    {
        public Reputation()
        {
            Id = -1;
        }

        public int Id { get; set; }
        public User From { get; set; }
        public User To { get; set; }
        public int Points { get; set; }
        public DateTime Date { get; set; }
        public string Comment { get; set; }

        public static int CalculatePoints(User giver)
        {
            int points = 0;

            // calculate points to give based on months of membership, users own reputation
            // 1 month = 1 point to give
            // 10 rep points = 1 point to give

            return points;
        }
    }
}
